package com.snopy.designPattern.create.prototype.impl;

import com.snopy.designPattern.create.prototype.Paper;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author snopy
 * @version 1.0.0
 * @classname ToiletPaper
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/02 12:44
 */
@Slf4j
@Setter
@Getter
public class ToiletPaper extends Paper {

    @Override
    public void record() {
        log.info("name:{},size:{},{}",name,size,type);
    }

    @Override
    public String toString() {
        return "ToiletPaper{" +
                "type='" + type + '\'' +
                ", size=" + size +
                ", name='" + name + '\'' +
                '}';
    }
}
